package com.xbongbong.workflow.pojo;

import com.xbongbong.pro.formdata.pojo.SaasNeedRedundantAttrPojo;
import com.xbongbong.workflow.domain.entity.WorkflowNodeEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * 工作流 流转
 * @author 魏荣杰
 *
 */
@Setter
@Getter
public class WorkflowRabbitmqDTO {

    /**
     * 工作流流转上下文
     */
    private WorkflowTransferPOJO workflowTransferPOJO;

    /**
     * 当前流转到的节点
     */
    private WorkflowNodeEntity workflowNodeEntity;

    /**
     * saas需要的pojo
     */
    private SaasNeedRedundantAttrPojo saasNeedRedundantAttrPojo;

    /**
     * 群id，发送审批卡片到群（酷应用）
     */
    private String openConversationId;
    /**
     * 上一任务id，重新提交工作流使用
     */
    private Long preTaskId;
    /**
     * 审批操作人id
     */
    private String operatorId;

    public WorkflowRabbitmqDTO() {
    }

    public WorkflowRabbitmqDTO(WorkflowTransferPOJO workflowTransferPOJO, WorkflowNodeEntity workflowNodeEntity, SaasNeedRedundantAttrPojo saasNeedRedundantAttrPojo) {
        this.workflowTransferPOJO = workflowTransferPOJO;
        this.workflowNodeEntity = workflowNodeEntity;
        this.saasNeedRedundantAttrPojo = saasNeedRedundantAttrPojo;
    }
}
